import { _decorator, Component, Node, Vec3 } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Bullet')
export class Bullet extends Component {
    start() {

    }

    updatePosition(x: number, y: number) {
        this.node.position = new Vec3(x, y, 0);
    }
    updateDirection(angle: number) {
        this.node.angle = angle
    }
}

